from rest_framework import serializers

from django.contrib.auth import get_user_model
User = get_user_model()


class UserDetailSerializer(serializers.ModelSerializer):
    """
    User Detail
    """
    class Meta:
        model = User
        fields = ["username", 'nick_name', 'role']
